/* Operation.module.css */
.supportContainer {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f8f9fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navBar {
  background-color: #1677ff;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navBar :global(.adm-nav-bar-title) {
  font-weight: 500;
}

.chatContainer {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #f0f2f5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messageItem {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.systemMessage {
  justify-content: flex-start;
}

.userMessage {
  justify-content: flex-end;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 12px;
  background-color: #e6f7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1677ff;
  font-weight: bold;
  flex-shrink: 0;
}

.systemMessage .avatar {
  background-color: #f6ffed;
  color: #52c41a;
}

.messageContent {
  max-width: 75%;
  display: flex;
  flex-direction: column;
}

.messageBubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  word-break: break-word;
  position: relative;
  transition: all 0.2s;
}

.systemMessage .messageBubble {
  background-color: white;
  color: #333;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.userMessage .messageBubble {
  background: linear-gradient(135deg, #1677ff, #4096ff);
  color: white;
  border-top-right-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.messageTime {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  text-align: right;
  font-feature-settings: "tnum";
}

.systemMessage .messageTime {
  text-align: left;
}

.inputContainer {
  padding: 12px 16px;
  background-color: white;
  border-top: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.inputTools {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  border-radius: 24px;
  padding: 8px 16px;
  border: 1px solid #e8e8e8;
}

.messageInput {
  flex: 1;
  background-color: transparent;
  border: none;
  font-size: 15px;
  line-height: 1.5;
  padding: 4px 0;
  outline: none;
  resize: none;
  max-height: 120px;
  --placeholder-color: #bfbfbf;
}

.inputIcon {
  font-size: 22px;
  color: #595959;
  margin: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.inputIcon:hover {
  color: #1677ff;
}

.sendButton {
  background-color: #1677ff;
  color: white;
  border: none;
  border-radius: 24px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.2);
}

.sendButton:active {
  background-color: #0958d9;
  transform: scale(0.98);
}

.sendButton:disabled {
  background-color: #bfbfbf;
  box-shadow: none;
}

/* ====== 美化后的订单卡片样式 ====== */
.orderCard {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  width: 90%;
  margin: 12px auto;
  border: 1px solid #e6f4ff;
  transition: box-shadow 0.3s ease;
}

.orderCard:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.orderTitle {
  font-weight: 600;
  margin-bottom: 10px;
  color: #1677ff;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.orderTitle svg {
  color: #52c41a;
  font-size: 18px;
}

.orderCard p {
  margin: 6px 0;
  color: #4a4a4a;
  font-size: 14.5px;
  line-height: 1.6;
}

.orderCard .status {
  display: inline-block;
  padding: 5px 10px;
  background-color: #f6ffed;
  color: #389e0d;
  border-radius: 16px;
  font-size: 13px;
  margin-top: 10px;
  border: 1px solid #b7eb8f;
  font-weight: 500;
}

/* 滚动条样式优化 */
.chatContainer::-webkit-scrollbar {
  width: 8px;
}

.chatContainer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
}

.chatContainer::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 4px;
}

.chatContainer::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.25);
}

/* 响应式调整 */
@media (max-width: 480px) {
  .messageContent {
    max-width: 85%;
  }

  .messageBubble {
    padding: 10px 14px;
    font-size: 14px;
  }

  .avatar {
    width: 36px;
    height: 36px;
    margin: 0 8px;
  }

  .inputContainer {
    padding: 10px 12px;
  }

  .inputTools {
    padding: 6px 12px;
  }

  .messageInput {
    font-size: 14px;
  }

  .inputIcon {
    font-size: 20px;
  }

  .sendButton {
    padding: 8px 16px;
    font-size: 14px;
  }

  .orderCard {
    padding: 16px;
    width: 95%;
  }

  .orderTitle {
    font-size: 16px;
  }

  .orderCard p {
    font-size: 14px;
  }
}
/* Operation.module.css */
.operation-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f7f7fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navBar {
  background-color: #1677ff;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navBar :global(.adm-nav-bar-title) {
  font-weight: 500;
}

/* 订单卡片样式 */
.order-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin: 12px 0;
  border: 1px solid #e6f4ff;
  transition: box-shadow 0.3s ease;
}

.order-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.order-card-title {
  font-weight: 600;
  font-size: 17px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-card-price {
  font-weight: 600;
  font-size: 17px;
  color: #ff4d4f;
}

.order-card-status {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
  border-radius: 16px;
  font-size: 13px;
  margin-top: 10px;
  font-weight: 500;
}

/* 订单信息样式 */
.order-info {
  margin-bottom: 12px;
  line-height: 1.6;
}

.order-info-item {
  display: flex;
  margin-bottom: 6px;
}

.order-info-label {
  color: #888;
  width: 80px;
  flex-shrink: 0;
  font-size: 14px;
}

.order-info-value {
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

/* 按钮容器 */
.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-end;
}

/* 按钮样式 */
.primary-button {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.primary-button:active {
  background-color: #d9363e;
  transform: scale(0.98);
}

.secondary-button {
  background-color: white;
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.2s;
}

.secondary-button:active {
  background-color: #f5f5f5;
  transform: scale(0.98);
}

/* 倒计时样式 */
.countdown {
  background-color: rgba(255, 77, 79, 0.1);
  color: #ff4d4f;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 500;
}

/* 空状态样式 */
.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: #999;
  font-size: 15px;
  background: url('') no-repeat center 30px;
  padding-top: 100px;
  background-size: 80px;
}

/* 加载状态 */
.loading-state {
  padding: 30px;
  text-align: center;
  color: #999;
  font-size: 15px;
}

/* 弹窗内容样式 */
.popup-content {
  padding: 20px;
}

.popup-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
  text-align: center;
}

/* 抽屉操作按钮 */
.drawer-actions {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: 16px;
}

/* 响应式调整 */
@media (max-width: 375px) {
  .order-card {
    padding: 16px;
  }
  
  .order-card-title, .order-card-price {
    font-size: 16px;
  }
  
  .primary-button, .secondary-button {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .popup-content h3 {
    font-size: 16px;
  }
}